function editTeacher(teacher) {
	var jc = $
			.confirm({
				title : '修改教师名称',
				type : 'blue',
				content : '<hr>'
						+ '<table  class="table table-bordered" style="text-align: center;">'
						+ '<tbody>'
						+ '<tr>'
						+ '<td>教师名称：</td>'
						+ '<td><input id="input_teacher_name" class="form-control" /></td>'
						+ '</tr>' + '</tbody>' + '</table>',
				onContentReady : function() {

					var input_teacher_name = document
							.getElementById("input_teacher_name");
					input_teacher_name.value = teacher.split("&")[1];
				},
				buttons : {
					'提交修改' : {
						btnClass : 'btn-blue',
						action : function() {
							var xhr = false;
							xhr = new XMLHttpRequest();
							xhr.onreadystatechange = function() {
								var message;
								if (xhr.readyState == 4) {
									if (xhr.status == 200) {
										if (xhr.responseText == "1") {
											toastr.success("修改教师成功", "操作成功");
											jc.close();
											/*
											 * 刷新列表
											 */
											listTeacherAll_OrderBySort();
										} else {
											toastr.error("", "操作失败");
										}
									} else {
										toastr.error(xhr.status);
									}
								}
							}
							var formData = new FormData();

							if (input_teacher_name.value == "") {
								toastr.error("教师名称不可为空", "操作失败");
								return false;
							}

							xhr.open("POST",
									"/jxfgyj/teacher/updateTeacher");
							formData.append("teacher.jxfgyj_teacher_id",
									teacher.split("&")[0]);
							formData.append("teacher.teacher_name",
									input_teacher_name.value);

							xhr.send(formData);

							return false;
						}
					},
					'放弃' : function() {
					}
				}
			});
}